package com.demo.android.hello;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class MyHelloAndroidActivity extends Activity {

	TextView txt_MyText;

	Button btn_MyButton;
    
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main); /* main res> layout R >gen 20120310 */
		find_and_modify_button();
	}

	private void find_and_modify_button() {
		btn_MyButton = (Button) findViewById(R.id.button01);
		txt_MyText = (TextView) findViewById(R.id.editText01);
		btn_MyButton.setOnClickListener(showText);
	}

	private OnClickListener showText = new OnClickListener() {

		public void onClick(View v) {
			txt_MyText.setText("Hello World !");
			
		}
	};
}
